var App = App || {};

App.VERSION = '1.0';

App.Biz || (App.Biz = {});
App.Service || (App.Service = {});
App.Data || (App.Data = {});
App.Model || (App.Model = {});

App.namespace = function(ns_string) {
    var parts = ns_string.split('.');
    var parent = APP;
    var i;
    if (parts[0] === 'APP') {
        parts = parts.slice(1);
    }
    for (i = 0; i < parts.length; i += 1) {
        var p = parts[i];
        if (typeof parent[p] === 'undefined') {
            parent[p] = {};
        }
        parent = parent[p];
    }
    return parent;
};